<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSettingFinancesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_finances', function (Blueprint $table) {
            $table->id();
            $table->integer('setting_id')->unsigned()->comment('系统配置setting表id');
            $table->tinyInteger('balance_send')->default(0)->unsigned()->comment('是否支持余额发红包');
            $table->integer('low_deposit')->unsigned()->default(30)->comment('最低可提现金额');
            $table->integer('deposit_check')->unsigned()->default(0)->comment('审核提现金额');
            $table->char('remark',20)->nullable()->comment('提现成功备注信息');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_finances');
    }
}
